package com.lc.user.express.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import com.lc.user.express.R;
import com.lc.user.express.app.AppContext;
import com.zcx.helper.view.StartView;


/**
 * Created by Administrator on 2016/5/6.
 */
public class StarViewNotClick extends StartView {

    public StarViewNotClick(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected boolean isClick() {

        return false;

    }

    @Override
    protected int max() {

        return 5;

    }

    @Override
    protected int selectYes() {

        return R.mipmap.star_t;

    }

    @Override
    protected int selectNo() {

        return R.mipmap.star_f;

    }

    @Override
    protected View getView(View view) {

        LayoutParams layoutParams = new LayoutParams(AppContext.ScaleScreenHelper.getWidthHeight(36), AppContext.ScaleScreenHelper.getWidthHeight(36));

        layoutParams.rightMargin = AppContext.ScaleScreenHelper.getWidthHeight(10);

        view.setLayoutParams(layoutParams);

        return view;

    }

}

